#include "Text.h"
#include "CommonFunction.h"

//---------------------------------------------------------------
// Text
//---------------------------------------------------------------
int Text::LoadFromString(const char *string_data)
{
	int len_sum = 0;
	int len = __super::LoadFromString(string_data);
	len_sum += len;

	char buf[BUFFER_LEN];
	int ret = 0;

	ret = GetOneString(string_data + len_sum, buf, &len);
	this->text_data = buf;
	len_sum += len + 1;

	return 0;
}

const String &Text::GetDebugString(void) const
{
	return text_data;
}

String Text::GetDebugDetail(void) const
{
	return __super::GetDebugDetail() + "text=" + text_data;
}

